<?php
namespace Admin\Model;
use Think\Model;
/**
 *  ArticleModel
 */
class BaseModel extends Model {
    protected $tableName = ''; 
    
    public function insert($data) {
        if(!empty($data)) {
            $rel = $this->add($data);
            return $rel;
        }
        return false;
    }

    public function del($id) {
        $ret = $this->where('id='.$id)->delete();
        return $ret;
    }
}
?>